/* 需求: 在页面中显示两个Link标签, 跳转home; 和跳转 detail  在这个单页面应用中渲染home视图,渲染detail视图 */

import React from 'react';
import Home from './components/Home';
import Detail from './components/Detail';
import { Link, Route } from 'react-router-dom';

export default function App() {
  return (
    <div>
      App123
      <hr />
      <Link to="/Home">Home</Link>
      <hr />
      <Link to="/Detail">Detail</Link>
      <hr />
      <hr />
      <hr />
      <hr />
      <hr />
      <hr />
      <hr />
      <hr />
      <hr />
      <hr />
      <hr />
      <hr />
      <Route path="/" component={Home} exact></Route>
      <Route path="/Home" component={Home}></Route>
      <Route path="/Detail" component={Detail}></Route>
    </div>
  );
}
